

.topbarwrapper{
    width: 100%;
    height: 40px;
    line-height: 40px;
  background-color: #333333;
}
.topbar{
    position: relative;
}
.topbar a{
    font-size: 12px;
    color: #b0b0b0;
    display: block;
}
.topbar a:hover{
    color: #fff;
}
.topbar .line{
    color: #424242;
    font-size: 12px;
    margin: 0 8px;

}
.service,.topbar li{
    float: left;
}
.app{
    position: relative;
z-index: 3;
}
.app::after{
    display: none;
    content: '';
    width: 0px;
    height: 0px;
    border: 8px solid transparent;
    border-top: none;
    border-bottom-color:#fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.app:hover .qrcode,
.app:hover::after{
    display: block;
    height: 148px;
}
/*设置下载app的下拉 */
.app .qrcode{
    position: absolute;
    width: 124px;
    height: 0;
    overflow: hidden;
    left: -37px;
    line-height: 1px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    transition: height 0.3s;
}
/* 设置二维码中的文字 */
.app .qrcode span{
    font-size: 14px;
    color: #000;
}
/* 设置二维码图片 */
.app .qrcode img{
    width: 90px;
    margin: 17px 17px;
}
.shopcart,
.userinfo{
float: right;
}
.shopcart{
   margin-left: 26px;
   position: relative;
   z-index: 2;
}
.shopcart span{
    font-size: 14px;
    line-height: 100px;
    margin-left: 50px;
}
.shopcart .cart{
    position: relative;
    background-color: transparent;
    padding-bottom: 2px;
    z-index: 1;
}
.shopcart a{
    width: 120px;
    background-color: #424242;
    text-align: center;
    
}

.shopcart:hover a{
    background-color: #fff;
    color: #ff6700;
}
.shopcart i{
    margin-right: 2px;

}
/* 设置购物车下拉框 */
.shopcart .list{
    position: absolute;
    width: 318px;
    height: 0px;
    overflow: hidden;
    left: -198px;
    top: 40px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    transition: height 0.3s;

}
.shopcart:hover .list,
.shopcart:hover::after{

    display: block;
    height:100px ;
}
/* 设置中间的header */
.header-wrapper{
    position: relative;
}
.header{
    height: 100px;
    
   
}
/* 设置logo的h1 */
.header .logo{
    float: left;
    width: 55px;
    height: 55px;
    margin-top: 22px;
    position: relative;
    overflow: hidden;
    /* 隐藏logo中的文字 */
    text-indent: -9999px;
}
/* 统一设置logo的超链接 */
.header .logo a{
    position: absolute;
    width: 55px;
    height: 55px;
    left: 0;
    background-color: #FF6700;
    background-image: url(../img/mi-logo.png);
    background-position: center;
    transition:left 0.3s;
}
/* 设置home图标 */
.header .logo .home{
    background-image: url(../img/mi-home.png);
    left: -55px;
}
/* 设置鼠标移入后两个图标的位置 */
.header .logo:hover .mi{
    left: 55px;

}
.header .logo:hover .home{
    left: 0;
}
/* 设置中间导航条 */
.header .nav-wrapper{
    float: left;
    margin-left: 7px;

}
/* 设置导航条 */
.header .nav{
    /* width: 850px; */
   
    height: 100px;
    line-height: 100px;
    padding-left: 58px;

}
/* 设置导航条中的li */
.nav> li{
    float: left;
}
.nav-wrapper li a{
    display: block;
    font-size: 16px;
    margin-right: 20px;
    color:#333;
}
.nav-wrapper li a:hover{
    color: #ff6700;
}


.all-goods-wrapper{
    position: relative;
}
/* 设置左侧导航条的样式 */
.left-menu{
    width: 234px;
    height: 420px;
    padding: 20px 0;
    margin-top: -2px;
    background-color: rgba(0,0,0,.6);
    position: absolute;
    left: -120px;
   z-index: 999;
    line-height: 1;
}

ul.left-menu li a{
    display: block;
    height: 42px;
    line-height: 42px;
    color: white;
    margin-right: 0 ;
    padding: 0 30px;
    font-size: 14px;
}

ul.left-menu li a i{
    float: right;
    line-height: 42px;
}

ul.left-menu a:hover{
    color:white;
    background-color: #ff6700;
}
 

/* 隐藏全部商品 */
.allgoods{
    visibility: hidden;
}

.nav .show:hover ~ .goods-info,
.goods-info:hover
{
    height: 228px;
  border-top: 1px solid rgb(224,224,224);
  box-shadow: 0 5px 3px rgba(0,0,0,.2);
}
.goods-info{
    height:0;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 100px;
    left: 0;
    transition: height 0.3s;
    z-index: 9999;

}
.goods-info a{
    display: block; 
    text-align: center;
}
.search-wrapper{
    width: 296px;
    height: 50px;
    float: right;
    background-color: seagreen;
    margin-top: 25px;
}
.search-wrapper .search-inp{
    box-sizing: border-box;
    border: none;
    float: left;
    height: 50px;
    width: 244px;
    padding: 0 10px;
    font-size: 16px;
    border: 1px solid rgb(224,224,224);
    outline: none;

}
/* 设置input获取焦点后的样式 */
.search-wrapper .search-inp:focus,
.search-wrapper .search-inp:focus + button{
   border-color: #ff6700;
}
.search-wrapper .search-btn{
    float: left;
    height: 50px;
    width: 52px;
    padding: 0;
    border: none;
    background-color: #fff;
    color: #616161;
    font-size: 16px;
    border:  1px solid rgb(224,224,224);
    border-left: none;
    outline-style: none;

}
.search-wrapper .search-btn:hover{
    background-color: #ff6700;
    color: #fff;
    border: none;
}

/* 设置banner */
.banner{
    position: relative;
    height: 460px;
}
.banner .img-list li{
    position: absolute;
}
.banner img{
    width: 100%;
    vertical-align: top;
}
/* 设置五个点 */
.pointer{
    position: absolute;
    bottom: 22px;
    right:35px;
}
.pointer a{
    float: left;
    width: 6px;
    height: 6px;
    border: 2px rgba(255,255,255, .4) solid;
    border-radius: 50%;
    background-color: rgba(0,0,0,.4);
    margin-left: 6px;

}
.pointer a:hover,
.pointer a.active{
    background-color: rgba(255,255,255, .4);
    border-color: rgba(0,0,0,.4);
}
/* 设置两个箭头 */
.prev-next a{
    width: 41px;
    height: 69px;
    background-image: url(../img/icon-slides.png);
    position: absolute;
    top: 0;
    bottom: 0;
    margin:auto 0;
}
.prev-next .prev{
left: 234px;
background-position: -84px 0;
}
.prev-next .prev:hover{
    background-position: 0 0;
}
.prev-next .next{
right: 0;
background-position: -125px 0;
}
.prev-next .next:hover{
    background-position: -42px 0;
}
/* 设置回到顶部的元素 */
.back-top{
    width: 26px;
    height: 206px;
    background-color: white;
    border: 1px solid #F5F5F5;
    /* background-color: tomato; */
    position: fixed;
    right: 50%;
    bottom:80px;
    margin-right: -639px;
}
.back{
    width: 26px;
    height: 40px;
    background-color: white;
    border: 1px solid #F5F5F5;
    position: fixed;
    right: 50%;
    bottom:30px;
    margin-right: -639px;

}
.back li a{
    display: block;
    text-align: center;
    margin: 10px auto;
    color: rgba(0,0,0,.4);
    font-size: 18px;

}

/* 布局等式 
left+ margin left + width+ magin right + right=视口宽度
auto+0+26+0+50%=视口宽度*/
.back-top a{
    display: block;
    text-align: center;
    margin: 15px auto;
    color: rgba(0,0,0,.4);
    font-size: 16px;
}
.back a:hover{
    color: #ff6700;

}
.back-top a:hover{
    color: #ff6700;
}
/* 设置下部的广告区域 */
.ad{
height: 170px;
padding-top: 14px;
margin-bottom: 200px;

}
.ad .shortcut,
.ad .imgs,
.ad li{
    float: left;
}
/* 设置左侧快捷方式 */
.ad .shortcut{
    width: 228px;
    height: 170px;
    background-color: #5f5750;
    margin-right: 14px;
    padding-top: 2px;
    padding-left: 6px;
    

}
/* 设置上边框 */
.ad .shortcut li::before{
    content: "";
    position: absolute;
    width: 64px;
    height: 1px;
    background-color: #665e57;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;

}
.ad .shortcut li{
    position: relative;
}
/* 设置左边框 */
.ad .shortcut li::after{
    content: "";
    position: absolute;
    width: 1px;
    height: 64px;
    background-color: #665e57;
    left: 0;
    bottom: 0;
    top: 0;
    margin:auto 0;

}
/* 设置快捷方式中的超链接 */
.ad .shortcut a{
    display: block;
    color: #cfccca;
    height: 84px;
    width: 76px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
}
.ad .shortcut a:hover{
    color: #fff;
}
/* 设置图标字体 */
.ad .shortcut i{
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 20px;
}
/* 设置左侧图片 */
.ad .imgs li{
    width: 316px;
    margin-right: 15px;

}
.ad .imgs li:last-child{
    margin: 0;
}
.ad .imgs img{
    width: 100%;
    vertical-align: top;
}
.xiaomi{
   
    height: 398px;
    background-color: #F5F5F5;
}
.xiaomi .title{
    color: #333333;
    font-size:22px;
    margin: 20px ;
    padding: 30px 0 5px;
}
.xiaomi .mi{
    display: flex;
    justify-content: space-between;
    background-color: #F5F5F5;
}

